package com.itheima.ClassTest;

public class stringbuild {
    public static void main(String[] args) {
        StringBuilder sb= new StringBuilder("as");
        sb.append("asa").append("sdf");
        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);
        String s = sb.toString();
        System.out.println(s.length());
        for (int i = 0; i <s.length() ; i++) {
            char a = s.charAt(i);
            System.out.println(a);
        }
    }
}
